remove whitespace with regex javascript

44

remove whitespace with regex javascript -

return str.replace(/\s/g, '');

regex to ignore white spaces js -

myString.replace(/\s*/g,"")

Comments

Submit
0 Comments